package com.sds.sweng.swat.miplatform.ui.design.models.component;

import java.util.ArrayList;
import java.util.List;

import com.sds.sweng.swat.miplatform.ui.design.models.MiplatformComponent;
import com.sds.sweng.swat.miplatform.ui.design.utils.CloneUtils;

public class MTitle extends MiplatformComponent {

	private MStatic title;
	private List buttons;

	public MTitle() {
		this(new MStatic(), new ArrayList<MButton>());
	}

	public MTitle(MStatic title, List buttons) {
		this.title = title;
		this.buttons = buttons;
	}

	public MTitle clone() {
		return new MTitle(new MStatic(title.getText()), CloneUtils.clone(buttons));
	}

	public MStatic getTitle() {
		return title;
	}
	public void setTitle(MStatic title) {
		this.title = title;
	}
	public List<MButton> getButtons() {
		return buttons;
	}
	public void setButtons(List buttons) {
		this.buttons = buttons;
	}

}
